package com.huarui.donation.service;

import java.util.List;
import java.util.Map;

import org.ewaf.framework.model.ListModel;
import org.ewaf.framework.service.BaseService;

import com.huarui.donation.dao.IDonationDao;
import com.huarui.saleInvoice.dao.ISaleInvoiceDao;

public class DonationService extends BaseService {
	
	private IDonationDao getDao(){
		return (IDonationDao) this.dao;
	}
	@SuppressWarnings("unchecked")
	public List<Map> pagingByCondition(ListModel lm,Map map){
		Integer total = getDao().getCountByConditions(map);
		lm.setTotal(total);
		map.put("listModel", lm);
		List result = this.getDao().getListByConditions(map);
		lm.setResult(result);
		return result;
	}
}
